﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using KCL.Code.Data;

namespace KCL.Code.Business
{
    public class ThicknessServices
    {
        public static List<Thickness> GetAllThicknesses()
        {
            return (new ThicknessDAO()).GetAllThicknesses();
        }

        public static bool Insert(Thickness t)
        {
            return (new ThicknessDAO()).Insert(t);
        }

        public static bool Update(Thickness t)
        {
            t.isActive = true;
            return (new ThicknessDAO()).Update(t);
        }

        public static bool Delete(Thickness t)
        {
            return (new ThicknessDAO()).Delete(t);
        }
    }
}